/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.seari.utils;

import java.util.HashMap;
import java.util.Map;
import javafx.scene.Scene;
import javafx.stage.Stage;

/**
 *
 * @author Rainbow
 */
public class FXHelper
{
    private static Map<String ,Stage> stageMap = new HashMap<>();
    private static Map<String ,Scene> sceneMap = new HashMap<>();
    
    public static Stage getStageByName(String name)
    {
        return stageMap.get(name);
    }    
    public static void setStageByName(String name,Stage stage)
    {
        stageMap.put(name,stage);
    }
    
    public static Scene getSceneByName(String name)
    {
        return sceneMap.get(name);
    }    
    public static void setSceneByName(String name,Scene scene)
    {
        sceneMap.put(name,scene);
    }
}
